Grep-ing gzipped files [duplicate]
Posted
by
Julien Genestoux
on Server Fault
See other posts from Server Fault
or by Julien Genestoux
Published on 2013-10-21T13:49:47Z
Indexed on
2013/10/21
21:55 UTC
Read the original article
Hit count: 188
This question already has an answer here:
- Grepping through .gz log files 5 answers
I have a set of 100 log files, compressed using gzip. I need to find all lines matching a given expression. I'd use grep, but of course, that's a bit of a nightmare because I'll have to unzip all files, one by one, grep them and delete the unzipped version, because they wouldn't all fit on my sevrer if they were all unzipped.
Anyone has a little trick on how to get that done quickly?
© Server Fault or respective owner